package com.li.shop.service;

import com.li.shop.domain.Merchants;
import com.li.shop.utils.SearchMerchantsRequest;
import com.li.shop.utils.SearchMerchantsResponse;

import java.util.List;

public interface MerchantsService {
 void add(Merchants merchants);
 void delete(String email);
 void update(Merchants merchants);
 Merchants login(String email, String password);
 Merchants get(String email);
 List<Merchants>list();
 Merchants get(String email, String password);
 boolean exist(String email);


    SearchMerchantsResponse listMerchants(Integer pageSize, Integer pageNum, String keyword);
    int deleteMerchantsByPrimaryKey(String id);
    Merchants findMerchantsByPrimaryKey(String id);
    List<Merchants> searchMerchantss(SearchMerchantsRequest request);
    int saveMerchants(Merchants merchants);
}
